package com.example.tests;

import org.testng.annotations.Test;

import com.example.framework.dataobjects.ContactObject;

public class ContactModificationTests  extends TestBase{

	@Test
	public void testContactCanBeModified() throws Exception {
		ContactObject contactCredentials = new ContactObject();
		
		contactCredentials.setFirstName("a124242");
		contactCredentials.setLastName("b3243241");
		contactCredentials.setAddress("addr124212");
		contactCredentials.setPhone("phone41214");
		contactCredentials.setHome("home1422");
		contactCredentials.setMobile("mobile41221");
		contactCredentials.setWork("work12421");
		contactCredentials.setEmail("email1412");
		contactCredentials.setEmail2("email1421");
		contactCredentials.setbDay("13");
		contactCredentials.setbMonth("January");
		contactCredentials.setbYear("2040");
		contactCredentials.setGroup("yresfd");
		contactCredentials.setSecondaryAddress("second address");
		contactCredentials.setSecondaryPhone("phone");
		
		int contactId = 8;
		app.getContactHelper().modifyContact(contactId, contactCredentials);
		
	}
}
